<template>
    <el-input type="textarea" v-model="showData" placeholder="在这里输入多行文本" :rows="6" clearable />
</template>

<script lang="ts" setup>
import { ref, onMounted } from 'vue'
import { useRoute } from 'vue-router'
//用于接收路由跳转携带的参数
const route = useRoute();
// interface show {
//     info: String
// }
const showData = ref({
    info: "这是w2初始显示数据"
})
//接收来自w1的参数
onMounted(() => {
    const getW1Params = route.params;
    console.log("params接收来自w1的参数", getW1Params.id);
    showData.value = getW1Params.id
})
</script>
